#!/bin/bash


###############################################
# mmap 测试 /dev/scullp fault/nopage 设备
###############################################
sudo dmesg -c
sudo ./scullp_load
sudo dmesg -c
ll /dev/scullp*
cat /proc/buddyinfo

echo "abc" > /dev/scullp
sudo dmesg -c
cat /proc/buddyinfo

sudo ls -l /dev > /dev/scullp

sudo ../misc-progs/mapper /dev/scullp 0 140
sudo dmesg -c

sudo ../misc-progs/mapper /dev/scullp 0 0x3000
sudo dmesg -c

sudo ./scullp_unload
sudo dmesg -c

